FROM java:8
ADD dockerfile.project.build.finalname.jar app.jar
ENV TZ="Asia/Shanghai" \
    JAVA_OPTS= "-Xms128m -Xmx256m -XX:MaxMetaspaceSize=128m" \
    CONFIG_PROFILE="--config.profile=dev" \
    CONFIG_URI="--config.uri=http://dev.eud.net.cn/eud-config-center"
RUN echo 'java $JAVA_OPTS -jar /app.jar $CONFIG_PROFILE $CONFIG_URI' > runapp.sh && \
    chmod +x runapp.sh
EXPOSE 10021
ENTRYPOINT ["/bin/bash","runapp.sh"]